Previous Book Contents Book Index Next

Inside Macintosh: Open Transport /
Chapter 5 - Option Management / Option Management Reference
Constants and Data Types


The Keepalive Structure

The keepalive structure specifies the value of the OPT_KEEPALIVE option, described in "Generic Options" (page 5-27).

The keepalive structure is defined by the t_kpalive data type.

struct t_kpalive
   {
      long kp_onoff;    /* option on/off */
      long kp_timeout;  /* timeout in minutes */
   };
Field Description
kp_onoff
A constant specifying whether the option is turned on ( T_ON) or off (T_OFF).
kp_timeout
A positive integer specifying for how many minutes
Open Transport can maintain a connection in the absence of traffic.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
15 AUG 1996